package com.junyuan.fxf_pad;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageButton;

public class GuideActivity extends AppCompatActivity implements View.OnClickListener{
    ImageButton ibBuy,ibBle,ibUsb;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_guide);

//        getWindow().setFormat(PixelFormat.RGBA_8888);
//        getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER);
//        setContentView(R.layout.activity_guide);
//
//        new Handler().postDelayed(new Runnable() {
//            public void run() {
//                /* Create an Intent that will start the Main WordPress Activity. */
//                Intent mainIntent = new Intent(GuideActivity.this, MainActivity.class);
//                GuideActivity.this.startActivity(mainIntent);
//                GuideActivity.this.finish();
//            }
//        }, 2900); //2900 for release

        ibBuy= (ImageButton) findViewById(R.id.ibBuy);
        ibBle= (ImageButton) findViewById(R.id.ibBle);
        ibUsb= (ImageButton) findViewById(R.id.ibUsb);
        ibBuy.setOnClickListener(this);
        ibBle.setOnClickListener(this);
        ibUsb.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.ibBle:
                Intent intent=new Intent(GuideActivity.this,MainActivity.class);
                startActivity(intent);
                break;
        }
    }
}
